#!/usr/bin/env python
# -*- coding:utf-8 -*-

' a test module'

__author__ = 'Michael Liao'

import sys
import functools

def log(func):
    @functools.wraps(func)
    def warpper():
        print 'call %s():' % func.__name__
        return func()
    return warpper

@log
def now():
    print '2012-12-21'

def test():
    args = sys.argv
    if len(args)==1:
        print 'Hello,world'
    elif len(args)==2:
        print 'HEllo, %s!' % args[1]
    else:
        print 'Too many arguments!'

if __name__ =='__main__':
    test()
#else :
#    print 'ss'
